package com.mrdeer.user.api.dto.authorization;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 14:37
 */
@Data
@ApiModel(value = "PrivilegeTreeDTO", description = "权限树信息")
public class PrivilegeTreeDTO implements Serializable {
    private static final long serialVersionUID = -7294797053374199246L;

    @ApiModelProperty("节点唯一标识，权限组使用ID")
    private String id;

    @ApiModelProperty("节点名称")
    private String name;

    @ApiModelProperty("父节点标识")
    private String parentId;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("是否为权限组")
    private boolean isGroup = true;     //显示名称

    @ApiModelProperty("子节点集合")
    private List<PrivilegeTreeDTO> children = new ArrayList<>();
}
